﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace FioBook.Models
{
    public class Employee
    {
        public Employee()
        {
            this.Skills = new HashSet<Skill>();
            this.Hobbies = new HashSet<string>();
            this.Sports = new HashSet<string>();
            this.Music = new HashSet<string>();
            this.Publications = new HashSet<Publication>();
        }

        public int Id { get; set; }

        public string FirstName { get; set; }

        public string LastName { get; set; }

        public int TeamId { get; set; }
        [ForeignKey("TeamId")]
        public virtual Team Team { get; set; }

        public virtual JobPositionEnum JobPosition { get; set; }

        public virtual ICollection<Skill> Skills { get; set; }

        public virtual ICollection<string> Hobbies { get; set; }

        public virtual ICollection<string> Sports { get; set; }

        public virtual ICollection<string> Music { get; set; } 

        //TODO: Educational/professional publications in xWiki and other places
        public virtual ICollection<Publication> Publications { get; set; } 
    }
}
